package com.maozzi.service.logger.domain.impl;

import com.maozzi.service.logger.domain.LogDomainService;
import com.maozzi.service.logger.repository.mapper.LogMapper;
import com.maozzi.service.logger.repository.model.Log;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * log domain service
 *
 * @author maozi
 */
@Service
public class LogDomainServiceImpl implements LogDomainService {

    @Resource
    private LogMapper logMapper;

    @Override
    public Log putLog(Log log) {
        logMapper.insert(log);
        return log;
    }
}
